// 登录页面mock
class Login {
  get(url, data) {
    return new Promise((resolve, reject) => {
      console.log(url, data);
      if (url === "/login.do") {
        setTimeout(() => {
          resolve({ status: 200, data: 12323123 });
        }, 1000);
        return;
      }
      reject(new Error(`${url}出错了`));
    });
  }
}
const getDataMock = new Login();
export default getDataMock.get;
